﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="AdminLog.aspx.cs" Inherits="Cotrobaie.AdminLog" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
<div id="headerMiddle">
	<div id="logo1">
        <asp:ImageButton ID="ImageButton6" runat="server"  ImageUrl="~/images/logomic.png" OnClick="goHome"/>
	</div>			    
</div>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="bigBulina">
        <asp:Image ID="Image1" runat="server" ImageUrl="~/images/biggreeen.png"/>
        <div runat="server" id="contentBigBulina" class="contentBigBulina" style="text-align:left; top:180px; left:250px; color:White; width:600px;">
    <div style="position:relative; top:50px; left:100px; width:200px">
        <table cellspacing="5px" >
            <tr> <td align="left" style="color:#272727; font-weight:600; height:25px; " colspan="2">LOGIN ADMIN </td> <td> &nbsp;</td></tr>
            <tr> <td align="left" colspan="2"> <hr style="width:270px; color:#d2d2d2"/></td></tr>
            <tr> <td> &nbsp;</td></tr>
            <tr>
                <td align="left">
                    <asp:Label ID="LabelUserLogin" runat="server" AssociatedControlID="TextBoxUserLogin">Admin</asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBoxUserLogin" runat="server" BorderWidth="1" BorderColor="#d2d2d2" 
                        BorderStyle="Solid" Height="20" ForeColor="#707070" Width="180px" ValidationGroup="GrupLoginBonaaaa" MaxLength="30"></asp:TextBox>&nbsp;
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="TextBoxUserLogin" 
                        ErrorMessage="Campul Nume admin este obligatoriu"  Text="<blink style='color:#ff5b02;'>*</blink>"
                        ValidationGroup="GrupLoginBonaaaa" SetFocusOnError="True" Display="Dynamic"/>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ErrorMessage="Campul Nume admin este incorect (trebuie sa contina doar litere si cifre si o dimensiune intre 2 si 30 caractere)" 
                        Text="<blink style='color:#ff5b02;'>*</blink>" ValidationGroup="GrupLoginBonaaaa" 
                        ControlToValidate="TextBoxUserLogin" SetFocusOnError="true" Display="Dynamic" 
                        ValidationExpression="[a-zA-Z0-9._]{2,30}"/>
                    <asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="TextBoxUserLogin" 
                        ErrorMessage="" Text="<blink style='color:#ff5b02;'>*</blink>" Display="Dynamic" 
                        SetFocusOnError="True" ValidationGroup="GrupInregBona"/>
                </td>
            </tr>
            <tr><td>&nbsp;</td></tr>
            <tr>
                <td align="left">
                    <asp:Label ID="LabelPasLogin" runat="server" AssociatedControlID="TextBoxPasLogin" >Password </asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBoxPasLogin" runat="server" TextMode="Password" BorderWidth="1" BorderColor="#d2d2d2" 
                        BorderStyle="Solid" Height="20" ForeColor="#707070" Width="180px" ValidationGroup="GrupLoginBonaaaa" MaxLength="50"></asp:TextBox>&nbsp;
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
                        ControlToValidate="TextBoxPasLogin" 
                        ErrorMessage="Campul Parola este obligatoriu"  Text="<blink style='color:#ff5b02;'>*</blink>"
                        ValidationGroup="GrupLoginBonaaaa"  SetFocusOnError="True" Display="Dynamic"/>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                        ErrorMessage="Campul Parola trebuie sa contina minim 6 caractere" 
                        Text="<blink style='color:#ff5b02;'>*</blink>" ControlToValidate="TextBoxPasLogin"
                        ValidationGroup="GrupLoginBonaaaa"  SetFocusOnError="true" Display="Dynamic" 
                        ValidationExpression="^^[\w\W]{6,50}$"/>
                </td>
            </tr>
            <tr>
                <td align="center" colspan="2" style="color:#ff5b02;">
                    <asp:Literal ID="Literal1" runat="server" EnableViewState="False"></asp:Literal>
                </td>
            </tr>
            <tr><td>&nbsp;</td></tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="ButtonLog" runat="server" Text="Login" CssClass="bigbutton"  
                        Width="100px" ValidationGroup="GrupLoginBonaaaa" 
                        onclick="ButtonLog_Click"  />
                </td>
            </tr>
            <tr><td>
                <asp:ValidationSummary ID="ValidationSummary2" runat="server" 
                    HeaderText="Trebuie sa completati corect urmatoarele campuri: " 
                    ShowMessageBox="True" ShowSummary="False" 
                    ValidationGroup="GrupLoginBonaaaa" />
            </td></tr>
        </table>
    </div>
    </div></div>
</asp:Content>
